import { StateMachine } from "../../../ADCore/Implements/ImpStateMachine/StateMachine";
import { RoleAction } from "../../../ADCore/Interfaces/IEnum";

export default class RoleDeadState extends StateMachine {
  public onEnter(obj: any = null): void {
    this.owner.disObjCtrl.aniController.playAniByState(
      this.getStateKey(),
      null,
      Laya.Handler.create(this, this.onAniFinish)
    );
  }

  private onAniFinish(): void {
    //   RoleManager.Instance.remove(this.owner);
  }

  public getStateKey(): RoleAction {
    return RoleAction.dead;
  }
}
